package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FGgtMonthlyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FGgtMonthlyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andMonthIsNull() {
            addCriterion("month is null");
            return (Criteria) this;
        }

        public Criteria andMonthIsNotNull() {
            addCriterion("month is not null");
            return (Criteria) this;
        }

        public Criteria andMonthEqualTo(String value) {
            addCriterion("month =", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotEqualTo(String value) {
            addCriterion("month <>", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthGreaterThan(String value) {
            addCriterion("month >", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthGreaterThanOrEqualTo(String value) {
            addCriterion("month >=", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthLessThan(String value) {
            addCriterion("month <", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthLessThanOrEqualTo(String value) {
            addCriterion("month <=", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthLike(String value) {
            addCriterion("month like", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotLike(String value) {
            addCriterion("month not like", value, "month");
            return (Criteria) this;
        }

        public Criteria andMonthIn(List<String> values) {
            addCriterion("month in", values, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotIn(List<String> values) {
            addCriterion("month not in", values, "month");
            return (Criteria) this;
        }

        public Criteria andMonthBetween(String value1, String value2) {
            addCriterion("month between", value1, value2, "month");
            return (Criteria) this;
        }

        public Criteria andMonthNotBetween(String value1, String value2) {
            addCriterion("month not between", value1, value2, "month");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtIsNull() {
            addCriterion("day_buy_amt is null");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtIsNotNull() {
            addCriterion("day_buy_amt is not null");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtEqualTo(Float value) {
            addCriterion("day_buy_amt =", value, "dayBuyAmt");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtNotEqualTo(Float value) {
            addCriterion("day_buy_amt <>", value, "dayBuyAmt");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtGreaterThan(Float value) {
            addCriterion("day_buy_amt >", value, "dayBuyAmt");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtGreaterThanOrEqualTo(Float value) {
            addCriterion("day_buy_amt >=", value, "dayBuyAmt");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtLessThan(Float value) {
            addCriterion("day_buy_amt <", value, "dayBuyAmt");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtLessThanOrEqualTo(Float value) {
            addCriterion("day_buy_amt <=", value, "dayBuyAmt");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtIn(List<Float> values) {
            addCriterion("day_buy_amt in", values, "dayBuyAmt");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtNotIn(List<Float> values) {
            addCriterion("day_buy_amt not in", values, "dayBuyAmt");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtBetween(Float value1, Float value2) {
            addCriterion("day_buy_amt between", value1, value2, "dayBuyAmt");
            return (Criteria) this;
        }

        public Criteria andDayBuyAmtNotBetween(Float value1, Float value2) {
            addCriterion("day_buy_amt not between", value1, value2, "dayBuyAmt");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolIsNull() {
            addCriterion("day_buy_vol is null");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolIsNotNull() {
            addCriterion("day_buy_vol is not null");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolEqualTo(Float value) {
            addCriterion("day_buy_vol =", value, "dayBuyVol");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolNotEqualTo(Float value) {
            addCriterion("day_buy_vol <>", value, "dayBuyVol");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolGreaterThan(Float value) {
            addCriterion("day_buy_vol >", value, "dayBuyVol");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolGreaterThanOrEqualTo(Float value) {
            addCriterion("day_buy_vol >=", value, "dayBuyVol");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolLessThan(Float value) {
            addCriterion("day_buy_vol <", value, "dayBuyVol");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolLessThanOrEqualTo(Float value) {
            addCriterion("day_buy_vol <=", value, "dayBuyVol");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolIn(List<Float> values) {
            addCriterion("day_buy_vol in", values, "dayBuyVol");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolNotIn(List<Float> values) {
            addCriterion("day_buy_vol not in", values, "dayBuyVol");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolBetween(Float value1, Float value2) {
            addCriterion("day_buy_vol between", value1, value2, "dayBuyVol");
            return (Criteria) this;
        }

        public Criteria andDayBuyVolNotBetween(Float value1, Float value2) {
            addCriterion("day_buy_vol not between", value1, value2, "dayBuyVol");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtIsNull() {
            addCriterion("day_sell_amt is null");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtIsNotNull() {
            addCriterion("day_sell_amt is not null");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtEqualTo(Float value) {
            addCriterion("day_sell_amt =", value, "daySellAmt");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtNotEqualTo(Float value) {
            addCriterion("day_sell_amt <>", value, "daySellAmt");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtGreaterThan(Float value) {
            addCriterion("day_sell_amt >", value, "daySellAmt");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtGreaterThanOrEqualTo(Float value) {
            addCriterion("day_sell_amt >=", value, "daySellAmt");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtLessThan(Float value) {
            addCriterion("day_sell_amt <", value, "daySellAmt");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtLessThanOrEqualTo(Float value) {
            addCriterion("day_sell_amt <=", value, "daySellAmt");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtIn(List<Float> values) {
            addCriterion("day_sell_amt in", values, "daySellAmt");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtNotIn(List<Float> values) {
            addCriterion("day_sell_amt not in", values, "daySellAmt");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtBetween(Float value1, Float value2) {
            addCriterion("day_sell_amt between", value1, value2, "daySellAmt");
            return (Criteria) this;
        }

        public Criteria andDaySellAmtNotBetween(Float value1, Float value2) {
            addCriterion("day_sell_amt not between", value1, value2, "daySellAmt");
            return (Criteria) this;
        }

        public Criteria andDaySellVolIsNull() {
            addCriterion("day_sell_vol is null");
            return (Criteria) this;
        }

        public Criteria andDaySellVolIsNotNull() {
            addCriterion("day_sell_vol is not null");
            return (Criteria) this;
        }

        public Criteria andDaySellVolEqualTo(Float value) {
            addCriterion("day_sell_vol =", value, "daySellVol");
            return (Criteria) this;
        }

        public Criteria andDaySellVolNotEqualTo(Float value) {
            addCriterion("day_sell_vol <>", value, "daySellVol");
            return (Criteria) this;
        }

        public Criteria andDaySellVolGreaterThan(Float value) {
            addCriterion("day_sell_vol >", value, "daySellVol");
            return (Criteria) this;
        }

        public Criteria andDaySellVolGreaterThanOrEqualTo(Float value) {
            addCriterion("day_sell_vol >=", value, "daySellVol");
            return (Criteria) this;
        }

        public Criteria andDaySellVolLessThan(Float value) {
            addCriterion("day_sell_vol <", value, "daySellVol");
            return (Criteria) this;
        }

        public Criteria andDaySellVolLessThanOrEqualTo(Float value) {
            addCriterion("day_sell_vol <=", value, "daySellVol");
            return (Criteria) this;
        }

        public Criteria andDaySellVolIn(List<Float> values) {
            addCriterion("day_sell_vol in", values, "daySellVol");
            return (Criteria) this;
        }

        public Criteria andDaySellVolNotIn(List<Float> values) {
            addCriterion("day_sell_vol not in", values, "daySellVol");
            return (Criteria) this;
        }

        public Criteria andDaySellVolBetween(Float value1, Float value2) {
            addCriterion("day_sell_vol between", value1, value2, "daySellVol");
            return (Criteria) this;
        }

        public Criteria andDaySellVolNotBetween(Float value1, Float value2) {
            addCriterion("day_sell_vol not between", value1, value2, "daySellVol");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtIsNull() {
            addCriterion("total_buy_amt is null");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtIsNotNull() {
            addCriterion("total_buy_amt is not null");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtEqualTo(Float value) {
            addCriterion("total_buy_amt =", value, "totalBuyAmt");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtNotEqualTo(Float value) {
            addCriterion("total_buy_amt <>", value, "totalBuyAmt");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtGreaterThan(Float value) {
            addCriterion("total_buy_amt >", value, "totalBuyAmt");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtGreaterThanOrEqualTo(Float value) {
            addCriterion("total_buy_amt >=", value, "totalBuyAmt");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtLessThan(Float value) {
            addCriterion("total_buy_amt <", value, "totalBuyAmt");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtLessThanOrEqualTo(Float value) {
            addCriterion("total_buy_amt <=", value, "totalBuyAmt");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtIn(List<Float> values) {
            addCriterion("total_buy_amt in", values, "totalBuyAmt");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtNotIn(List<Float> values) {
            addCriterion("total_buy_amt not in", values, "totalBuyAmt");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtBetween(Float value1, Float value2) {
            addCriterion("total_buy_amt between", value1, value2, "totalBuyAmt");
            return (Criteria) this;
        }

        public Criteria andTotalBuyAmtNotBetween(Float value1, Float value2) {
            addCriterion("total_buy_amt not between", value1, value2, "totalBuyAmt");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolIsNull() {
            addCriterion("total_buy_vol is null");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolIsNotNull() {
            addCriterion("total_buy_vol is not null");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolEqualTo(Float value) {
            addCriterion("total_buy_vol =", value, "totalBuyVol");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolNotEqualTo(Float value) {
            addCriterion("total_buy_vol <>", value, "totalBuyVol");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolGreaterThan(Float value) {
            addCriterion("total_buy_vol >", value, "totalBuyVol");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolGreaterThanOrEqualTo(Float value) {
            addCriterion("total_buy_vol >=", value, "totalBuyVol");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolLessThan(Float value) {
            addCriterion("total_buy_vol <", value, "totalBuyVol");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolLessThanOrEqualTo(Float value) {
            addCriterion("total_buy_vol <=", value, "totalBuyVol");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolIn(List<Float> values) {
            addCriterion("total_buy_vol in", values, "totalBuyVol");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolNotIn(List<Float> values) {
            addCriterion("total_buy_vol not in", values, "totalBuyVol");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolBetween(Float value1, Float value2) {
            addCriterion("total_buy_vol between", value1, value2, "totalBuyVol");
            return (Criteria) this;
        }

        public Criteria andTotalBuyVolNotBetween(Float value1, Float value2) {
            addCriterion("total_buy_vol not between", value1, value2, "totalBuyVol");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtIsNull() {
            addCriterion("total_sell_amt is null");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtIsNotNull() {
            addCriterion("total_sell_amt is not null");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtEqualTo(Float value) {
            addCriterion("total_sell_amt =", value, "totalSellAmt");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtNotEqualTo(Float value) {
            addCriterion("total_sell_amt <>", value, "totalSellAmt");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtGreaterThan(Float value) {
            addCriterion("total_sell_amt >", value, "totalSellAmt");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtGreaterThanOrEqualTo(Float value) {
            addCriterion("total_sell_amt >=", value, "totalSellAmt");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtLessThan(Float value) {
            addCriterion("total_sell_amt <", value, "totalSellAmt");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtLessThanOrEqualTo(Float value) {
            addCriterion("total_sell_amt <=", value, "totalSellAmt");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtIn(List<Float> values) {
            addCriterion("total_sell_amt in", values, "totalSellAmt");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtNotIn(List<Float> values) {
            addCriterion("total_sell_amt not in", values, "totalSellAmt");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtBetween(Float value1, Float value2) {
            addCriterion("total_sell_amt between", value1, value2, "totalSellAmt");
            return (Criteria) this;
        }

        public Criteria andTotalSellAmtNotBetween(Float value1, Float value2) {
            addCriterion("total_sell_amt not between", value1, value2, "totalSellAmt");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolIsNull() {
            addCriterion("total_sell_vol is null");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolIsNotNull() {
            addCriterion("total_sell_vol is not null");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolEqualTo(Float value) {
            addCriterion("total_sell_vol =", value, "totalSellVol");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolNotEqualTo(Float value) {
            addCriterion("total_sell_vol <>", value, "totalSellVol");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolGreaterThan(Float value) {
            addCriterion("total_sell_vol >", value, "totalSellVol");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolGreaterThanOrEqualTo(Float value) {
            addCriterion("total_sell_vol >=", value, "totalSellVol");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolLessThan(Float value) {
            addCriterion("total_sell_vol <", value, "totalSellVol");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolLessThanOrEqualTo(Float value) {
            addCriterion("total_sell_vol <=", value, "totalSellVol");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolIn(List<Float> values) {
            addCriterion("total_sell_vol in", values, "totalSellVol");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolNotIn(List<Float> values) {
            addCriterion("total_sell_vol not in", values, "totalSellVol");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolBetween(Float value1, Float value2) {
            addCriterion("total_sell_vol between", value1, value2, "totalSellVol");
            return (Criteria) this;
        }

        public Criteria andTotalSellVolNotBetween(Float value1, Float value2) {
            addCriterion("total_sell_vol not between", value1, value2, "totalSellVol");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}